-
Notifications
You must be signed in to change notification settings - Fork 575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reorganize interface source code and documentation #2338
Conversation
Hello. You may have forgotten to update the changelog!
|
Codecov Report
@@ Coverage Diff @@
## master #2338 +/- ##
==========================================
+ Coverage 97.03% 99.42% +2.38%
==========================================
Files 241 243 +2
Lines 18342 18347 +5
==========================================
+ Hits 17799 18241 +442
+ Misses 543 106 -437
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly what I wanted! Guess I should have reviewed these in a different order...
Context: This is a follow up to PR #2337. The final step is to better organize the source code location of the
qml.execute
function, and ensure everything shows up in the documentation.Description of the Change:
execute
andcache_execute
functions have been moved topennylane/interfaces/execution.py
.set_shots
context manager has been moved topennylane/interfaces/set_shots.py
pennylane/interfaces/__init__.py
file has been updated to ensure that all internal functions and interfaces are properly documented.Benefits:
execute
functionsPossible Drawbacks:
set_shots
doesn't really belong along the interface code, but I wasn't sure where else to put it for now.Related GitHub Issues: n/a